package com.xiejr.api.dto.product;

import com.xiejr.model.entity.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotEmpty;
import javax.validation.constraints.NotNull;

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("商品分类 数据传输对象")
public class CategoryDTO extends BaseEntity.BaseDTO {
    private static final long serialVersionUID = -29014255047973620L;
    /**
     * 主键
     */
    @ApiModelProperty(value = "主键")
    @NotEmpty(message = "主键不得为空")
    private String id;


    /**
     * 分类名称
     */
    @ApiModelProperty(value = "分类名称")
    @NotEmpty(message = "分类名称不得为空")
    private String name;


    /**
     * 分类类型
     */
    @ApiModelProperty(value = "分类类型")
    @NotNull(message = "分类类型不得为空")
    private Integer type;


    /**
     * 父id
     */
    @ApiModelProperty(value = "父id")
    @NotNull(message = "父id不得为空")
    private Integer fatherId;


    /**
     * 图标
     */
    @ApiModelProperty(value = "图标")
    @NotEmpty(message = "图标不得为空")
    private String logo;


    /**
     * 口号
     */
    @ApiModelProperty(value = "口号")
    @NotEmpty(message = "口号不得为空")
    private String slogan;


    /**
     * 分类图
     */
    @ApiModelProperty(value = "分类图")
    @NotEmpty(message = "分类图不得为空")
    private String catImage;


    /**
     * 背景颜色
     */
    @ApiModelProperty(value = "背景颜色")
    @NotEmpty(message = "背景颜色不得为空")
    private String bgColor;






}